import { createApp } from 'vue';
import App from './App.vue';
import '@/assets/global.less';
import "./style.less";
import "@/assets/aliIcon/menu/iconfont.css";

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';

//权限管理
import directive from './directive'; // directive

// unplugin-vue-components插件无法处理非组件模块，因此我们需要手动导入这些样式。less导这个文件，css导入css.js;
import "ant-design-vue/es/modal/style/index";
import "ant-design-vue/es/notification/style/index";
import "ant-design-vue/es/message/style/index";

import router from './router';

import { createPinia } from "pinia";

// 搜索栏组件
import FilterSearch from "@/components/FilterSearch";

const app = createApp(App);
const pinia = createPinia();

app.component('FilterSearch', FilterSearch);

directive(app);

app.use(Antd);
app.use(pinia);

app.use(router);
app.config.productionTip = false;
app.mount('#app');
